package com.itsm.facade.entity.user;

import java.io.Serializable;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 后台账号管理
 * </p>
 *
 * @author 张权
 * @since 2017-09-28
 */
@TableName("sys_account")
public class Account extends Model<Account> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId("account_id")
	private Long accountId;
    /**
     * 用户名
     */
	@TableField("account_name")
	private String accountName;
    /**
     * 密码
     */
	private String password;
    /**
     * 昵称
     */
	@TableField("nick_name")
	private String nickName;
    /**
     * 头像
     */
	@TableField("head_img")
	private String headImg;
    /**
     * 是否锁定(默认为0：未锁定；1：锁定)
     */
	@TableField("is_lock")
	private Integer isLock;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Date createTime;
    /**
     * 最后更新时间，由数据库自动维护
     */
	@TableField("update_time")
	private Date updateTime;
    /**
     * 加密盐
     */
	private String salt;


	public Long getAccountId() {
		return accountId;
	}

	public void setAccountId(Long accountId) {
		this.accountId = accountId;
	}

	public String getAccountName() {
		return accountName;
	}

	public void setAccountName(String accountName) {
		this.accountName = accountName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public String getHeadImg() {
		return headImg;
	}

	public void setHeadImg(String headImg) {
		this.headImg = headImg;
	}

	public Integer getIsLock() {
		return isLock;
	}

	public void setIsLock(Integer isLock) {
		this.isLock = isLock;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getSalt() {
		return salt;
	}

	public void setSalt(String salt) {
		this.salt = salt;
	}

	@Override
	protected Serializable pkVal() {
		return this.accountId;
	}

	@Override
	public String toString() {
		return "Account{" +
			"accountId=" + accountId +
			", accountName=" + accountName +
			", password=" + password +
			", nickName=" + nickName +
			", headImg=" + headImg +
			", isLock=" + isLock +
			", createTime=" + createTime +
			", updateTime=" + updateTime +
			", salt=" + salt +
			"}";
	}
}
